// --------------------------------------------------------------------------------------------------------------------
// <copyright file="RouteLeg.cs" company="XamlNinja">
//   2011 Richard Griffin and Ollie Riches
// </copyright>
// <summary>
//   RouteLeg.cs
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace WP7Contrib.Services.BingMaps.Resources.Routes
{
    using System.Collections.Generic;
    using Newtonsoft.Json;
    using Resources;
    using Location;

    [JsonObject(MemberSerialization.OptIn)]
    internal sealed class RouteLeg
    {
        [JsonProperty("actualStart")]
        public Point ActualStart { get; set; }

        [JsonProperty("actualEnd")]
        public Point ActualEnd { get; set; }

        [JsonProperty("startLocation")]
        public Location StartLocation { get; set; }

        [JsonProperty("endLocation")]
        public Location EndLocation { get; set; }

        [JsonProperty("travelDistance")]
        public double? TravelDistance { get; set; }

        [JsonProperty("travelDuration")]
        public double? TravelDuration { get; set; }

        [JsonProperty("itineraryItems")]
        public IList<ItineraryItem> ItineraryItems { get; set; }
    }
}